package com.bl.system.service.impl;

import com.bl.system.domain.Systemdictionarydetail;
import com.bl.system.mapper.SystemdictionarydetailMapper;
import com.bl.system.service.ISystemdictionarydetailService;
import com.bl.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 业务实现类：
 */
@Service
public class SystemdictionarydetailServiceImpl extends BaseServiceImpl<Systemdictionarydetail> implements ISystemdictionarydetailService {
    @Autowired
    private SystemdictionarydetailMapper systemdictionarydetailMapper;
    @Override
    public List<Systemdictionarydetail> loadByTypeId(Long typesId) {
        List<Systemdictionarydetail> list = systemdictionarydetailMapper.loadByTypeId(typesId);

           list.forEach(System.out::println);

       return list;

    }
}
